﻿using lBLL;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Model;

namespace WebApplication160.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class HoteController : ControllerBase, lHoteBLL
    {
        private readonly lHoteBLL db;

        public HoteController(lHoteBLL db)
        {
            this.db = db;
        }
        [HttpGet("Show")]
        public List<Hoteinfor> Show()
        {
            return db.Show();
        }
    }
}
